package cn.stylefeng.guns.modular.business.frequency.orderstock.mapper;

import cn.stylefeng.guns.modular.business.frequency.ordersub.model.result.PkgOrderStock;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import cn.stylefeng.guns.modular.business.frequency.orderstock.entity.OrderStock;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Param;

/**
 * 入库(验车操作记录) Mapper 接口
 *
 * @author yujie
 * @date 2023/05/09 17:16
 */
public interface OrderStockMapper extends BaseMapper<OrderStock> {


    @Delete("delete from tt_order_stock where order_id = #{orderId}")
    void deleteByOrderId(@Param("orderId") Long orderId);

    PkgOrderStock getPkgOrderStock(@Param("orderId") Long orderId);
}